﻿CREATE PROCEDURE [dbo].[s_Tracker_InHouse]
	@TrackerIDs varchar(max)
AS

DECLARE @StatusID int SET @StatusID = dbo.MenuIDByProcID(@@PROCID) 

UPDATE t_Tracker SET StatusID = @StatusID
WHERE ID IN (SELECT Element FROM Split(@TrackerIDs,',')) AND
			StatusID <> @StatusID


